import Vue from "vue";
import VueRouter from "vue-router";
import LayoutView from "../layout/index.vue";

Vue.use(VueRouter);

const routes = [
  {
    path: "/",
    name: "layout",
    meta: { title: ["工作台"] },
    component: LayoutView,
    redirect: { name: "loginVue" },
    children: [
      {
        path: "/workbench",
        name: "workBench",
        meta: { title: ["工作台"] },
        component: () =>
          import(
            /* webpackChunkName: "workBench" */ "../views/workbench/index.vue"
          ),
      },
      {
        path: "/merchant/childOverview",
        name: "childOverview",
        meta: { title: ["商户", "子商户概览"] },
        component: () =>
          import(
            /* webpackChunkName: "childOverview" */ "../views/merchant/childOverview/index.vue"
          ),
      },
      {
        path: "/merchant/dealSearch",
        name: "dealSearch",
        meta: { title: ["商户", "交易查询"] },
        component: () =>
          import(
            /* webpackChunkName: "dealSearch" */ "../views/merchant/dealSearch/index.vue"
          ),
      },
      {
        path: "/merchant/createChild",
        name: "createChild",
        meta: { title: ["商户", "创建子商户"] },
        component: () =>
          import(
            /* webpackChunkName: "createChild" */ "../views/merchant/createChild/index.vue"
          ),
      },
      {
        path: "/merchant/childManagement",
        name: "childManagement",
        meta: { title: ["商户", "子商户管理"] },
        component: () =>
          import(
            /* webpackChunkName: "childManagement" */ "../views/merchant/childManagement/index.vue"
          ),
      },
      {
        path: "/merchant/childMerchantInfo",
        name: "childMerchantInfo",
        meta: { title: ["商户", "子商户详情"], hideBreadcrumb: true },
        component: () =>
          import(
            /* webpackChunkName: "childMerchantInfo" */ "../views/merchant/childManagement/info.vue"
          ),
      },
      {
        path: "/merchant/childMerchantEdit",
        name: "childMerchantEdit",
        meta: { title: ["商户", "子商户编辑"], hideBreadcrumb: true },
        component: () =>
          import(
            /* webpackChunkName: "childMerchantEdit" */ "../views/merchant/childManagement/edit.vue"
          ),
      },
      // 交易
      {
        path: "/deal/dealCollect",
        name: "dealCollect",
        meta: { title: ["交易", "交易汇总"] },
        component: () =>
          import(
            /* webpackChunkName: "dealCollect" */ "../views/deal/dealCollect/index.vue"
          ),
      },
      {
        path: "/deal/dealWater",
        name: "dealWater",
        meta: { title: ["交易", "支付订单"] },
        component: () =>
          import(
            /* webpackChunkName: "dealWater" */ "../views/deal/dealWater/index.vue"
          ),
      },

      {
        path: "/deal/refundTool",
        name: "refundTool",
        meta: { title: ["交易", "退款订单"] },
        component: () =>
          import(
            /* webpackChunkName: "refundTool" */ "../views/deal/refundTool/index.vue"
          ),
      },
      {
        path: "/deal/wechatCaseAccount",
        name: "wechatCaseAccount",
        meta: { title: ["交易", "微信支付宝分账"] },
        component: () =>
          import(
            /* webpackChunkName: "wechatCaseAccount" */ "../views/deal/wechatCaseAccount/index.vue"
          ),
      },
      {
        path: "/deal/qiyePay",
        name: "qiyePay",
        meta: { title: ["交易", "企业付款"] },
        component: () =>
          import(
            /* webpackChunkName: "qiyePay" */ "../views/deal/qiyePay/index.vue"
          ),
      },
      {
        path: "/deal/transfer_batch",
        name: "dealTransferBatch",
        meta: { title: ["交易", "企业批量付款"], hideBreadcrumb: true },
        component: () =>
          import(
            /* webpackChunkName: "transferBatch" */ "../views/deal/qiyePay/transferBatch.vue"
          ),
      },
      {
        path: "/deal/refund",
        name: "refundVue",
        meta: { title: ["交易", "退款审核"] },
        component: () =>
          import(
            /* webpackChunkName: "refundVue" */ "../views/deal/refund/index.vue"
          ),
      },
      {
        path: "/deal/weChatRedPacket",
        name: "dealWeChatRedPacket",
        meta: { title: ["交易", "微信红包"] },
        component: () =>
          import(
            /* webpackChunkName: "weChatRedPacket" */ "../views/deal/redPacket/index.vue"
          ),
      },
      //业务订单
      {
        path: "/salesOrder",
        name: "salesOrder",
        meta: { title: ["业务订单"] },
        component: () =>
          import(
            /* webpackChunkName: "about" */ "../views/salesOrder/index.vue"
          ),
      },
      // 对账
      {
        path: "/checkAccount/dredge",
        name: "dredgeVue",
        meta: { title: ["对账", "对账汇总"] },
        component: () =>
          import(
            /* webpackChunkName: "dredgeVue" */ "../views/checkAccount/collect/dredge.vue"
          ),
      },
      {
        path: "/checkAccount/collect",
        name: "checkAccountCollect",
        meta: { title: ["对账", "对账汇总"] },
        component: () =>
          import(
            /* webpackChunkName: "checkAccountCollect" */ "../views/checkAccount/collect/index.vue"
          ),
      },
      {
        path: "/checkAccount/errorHandle",
        name: "errorHandle",
        meta: { title: ["对账", "差错管理"] },
        component: () =>
          import(
            /* webpackChunkName: "errorHandle" */ "../views/checkAccount/errorHandle/index.vue"
          ),
      },
      {
        path: "/checkAccount/noApplication",
        name: "noApplication",
        meta: { title: ["对账", "非本应用交易"] },
        component: () =>
          import(
            /* webpackChunkName: "errorHandle" */ "../views/checkAccount/noApplication/index.vue"
          ),
      },
      // 分账
      {
        path: "/caseAccount/collect",
        name: "caseAccountCollect",
        meta: { title: ["分账", "分账汇总"] },
        component: () =>
          import(
            /* webpackChunkName: "caseAccountCollect" */ "../views/caseAccount/collect/index.vue"
          ),
      },
      {
        path: "/caseAccount/rules",
        name: "caseAccountRules",
        meta: { title: ["分账", "分账规则"] },
        component: () =>
          import(
            /* webpackChunkName: "caseAccountRules" */ "../views/caseAccount/rules/index.vue"
          ),
      },
      {
        path: "/caseAccount/rules/info",
        name: "caseAccpontRulesInfo",
        meta: { title: ["分账", "分账规则详情"], hideBreadcrumb: true },
        component: () =>
          import(
            /* webpackChunkName: "caseAccpontRulesInfo" */ "../views/caseAccount/rules/info.vue"
          ),
      },
      {
        path: "/caseAccount/rules/edit",
        name: "caseAccpontRulesEdit",
        meta: { title: ["分账", "分账规则编辑"], hideBreadcrumb: true },
        component: () =>
          import(
            /* webpackChunkName: "caseAccpontRulesEdit" */ "../views/caseAccount/rules/edit.vue"
          ),
      },
      {
        path: "/caseAccount/caseAccountDetails",
        name: "caseAccountDetails",
        meta: { title: ["分账", "应付分账"] },
        component: () =>
          import(
            /* webpackChunkName: "caseAccountDetails" */ "../views/caseAccount/details/index.vue"
          ),
      },
      {
        path: "/caseAccount/caseAccountSettles",
        name: "caseAccountSettles",
        meta: { title: ["分账", "分润结算"] },
        component: () =>
          import(
            /* webpackChunkName: "caseAccountSettles" */ "../views/caseAccount/details/settle.vue"
          ),
      },
      {
        path: "/caseAccount/takeDetails",
        name: "caseAccountTakeDetails",
        meta: { title: ["分账", "应收分账"] },
        component: () =>
          import(
            /* webpackChunkName: "caseAccountTakeDetails" */ "../views/caseAccount/takeDetails/index.vue"
          ),
      },
      {
        path: "/caseAccount/createRules",
        name: "caseAccountCreateRules",
        meta: { title: ["分账", "创建分账规则"], hideBreadcrumb: true },
        component: () =>
          import(
            /* webpackChunkName: "caseAccountCreateRules" */ "../views/caseAccount/createRules/index.vue"
          ),
      },
      // 余额
      {
        path: "/account/wallet",
        name: "walletVue",
        meta: { title: ["余额", "我的钱包"] },
        component: () =>
          import(
            /* webpackChunkName: "walletVue" */ "../views/account/wallet/index.vue"
          ),
      },
      {
        path: "/account/invest",
        name: "investVue",
        meta: { title: ["余额", "充值"] },
        component: () =>
          import(
            /* webpackChunkName: "investVue" */ "../views/account/invest/index.vue"
          ),
      },
      {
        path: "/account/rechargeRecord",
        name: "rechargeRecord",
        meta: { title: ["余额", "充值记录管理"] },
        component: () =>
          import(
            /* webpackChunkName: "rechargeRecord" */ "../views/account/recharge/index.vue"
          ),
      },
      {
        path: "/account/transferRecord",
        name: "transferRecord",
        meta: { title: ["余额", "转账记录管理"] },
        component: () =>
          import(
            /* webpackChunkName: "transferRecord" */ "../views/account/transfer/index.vue"
          ),
      },
      {
        path: "/account/withdraw",
        name: "withdrawVue",
        meta: { title: ["余额", "提现"] },
        component: () =>
          import(
            /* webpackChunkName: "withdrawVue" */ "../views/account/withdraw/index.vue"
          ),
      },
      {
        path: "/account/withdrawRecord",
        name: "withdrawRecord",
        meta: { title: ["余额", "提现记录管理"] },
        component: () =>
          import(
            /* webpackChunkName: "withdrawRecord" */ "../views/account/withdrawRecord/index.vue"
          ),
      },
      {
        path: "/account/withdrawRecord/withdrawAudit",
        name: "withdrawAudit",
        meta: { title: ["余额", "提现审核"], hideBreadcrumb: true },
        component: () =>
          import(
            /* webpackChunkName: "enterprisePayment" */ "../views/account/withdrawRecord/withdrawAudit.vue"
          ),
      },
      {
        path: "/account/yueTransfer",
        name: "yueTransfer",
        meta: { title: ["余额", "余额转账"] },
        component: () =>
          import(
            /* webpackChunkName: "yueTransfer" */ "../views/account/yueTransfer/index.vue"
          ),
      },
      {
        path: "/account/enterprisePayment",
        name: "enterprisePayment",
        meta: { title: ["余额", "企业付款"], hideBreadcrumb: true },
        component: () =>
          import(
            /* webpackChunkName: "enterprisePayment" */ "../views/account/enterprisePayment/index.vue"
          ),
      },
      {
        path: "/account/transfer_reset",
        name: "transferReset",
        meta: { title: ["余额", "转账至余额"], hideBreadcrumb: true },
        component: () =>
          import(
            /* webpackChunkName: "transferReset" */ "../views/account/transferReset/index.vue"
          ),
      },
      {
        path: "/account/transfer_bankcard",
        name: "transferBankcard",
        meta: { title: ["余额", "转账至银行卡"], hideBreadcrumb: true },
        component: () =>
          import(
            /* webpackChunkName: "transferBankcard" */ "../views/account/transferBankcard/index.vue"
          ),
      },
      {
        path: "/account/transfer_wechat",
        name: "transferWechat",
        meta: { title: ["余额", "转账至微信"], hideBreadcrumb: true },
        component: () =>
          import(
            /* webpackChunkName: "transferWechat" */ "../views/account/transferWechat/index.vue"
          ),
      },
      {
        path: "/account/transfer_ali",
        name: "transferAli",
        meta: { title: ["余额", "转账至支付宝"], hideBreadcrumb: true },
        component: () =>
          import(
            /* webpackChunkName: "transferAli" */ "../views/account/transferAli/index.vue"
          ),
      },
      {
        path: "/account/transfer_batch",
        name: "transferBatch",
        meta: { title: ["余额", "企业批量付款"], hideBreadcrumb: true },
        component: () =>
          import(
            /* webpackChunkName: "transferAli" */ "../views/account/transferBatch/index.vue"
          ),
      },
      {
        path: "/account/balance",
        name: "normalBalance",
        meta: { title: ["余额", "余额账户管理"] },
        component: () =>
          import(
            /* webpackChunkName: "normalBalance" */ "../views/account/balance/index.vue"
          ),
      },
      {
        path: "/account/give_balance",
        name: "giveBalance",
        meta: { title: ["余额", "赠送余额管理"] },
        component: () =>
          import(
            /* webpackChunkName: "giveBalance" */ "../views/account/giveBalance/index.vue"
          ),
      },
      // 用户
      {
        path: "/user",
        name: "userIndex",
        meta: { title: ["用户"] },
        component: () =>
          import(/* webpackChunkName: "userIndex" */ "../views/user/index.vue"),
      },
      {
        path: "/userInfo",
        name: "userInfo",
        meta: { title: ["用户"], hideBreadcrumb: true },
        component: () =>
          import(/* webpackChunkName: "userInfo" */ "../views/user/info.vue"),
      },
      // 优惠券
      {
        path: "/marketingTool/coupon",
        name: "couponVue",
        meta: { title: ["优惠券"] },
        component: () =>
          import(/* webpackChunkName: "couponVue" */ "../views/coupon/index.vue"),
      },
      {
        path: "/marketingTool/createCoupon",
        name: "createCoupon",
        meta: { title: ["优惠券", "创建优惠券模板"], hideBreadcrumb: true },
        component: () =>
          import(/* webpackChunkName: "createCoupon" */ "../views/coupon/create.vue"),
      },
      {
        path: "/marketingTool/weChatRedPacket",
        name: "weChatRedPacket",
        meta: { title: ["营销工具", "微信红包"] },
        component: () =>
          import(
            /* webpackChunkName: "weChatRedPacket" */ "../views/coupon/redPacket/index.vue"
          ),
      },
      // 设置
      {
        path: "/setting/payDitch",
        name: "payDitch",
        meta: { title: ["设置", "支付渠道"] },
        component: () =>
          import(
            /* webpackChunkName: "payDitch" */ "../views/setting/payDitch/index.vue"
          ),
      },
      {
        path: "/setting/userManagement",
        name: "settingUserManagement",
        meta: { title: ["设置", "成员管理"] },
        component: () =>
          import(
            /* webpackChunkName: "settingUserManagement" */ "../views/setting/userManagement/index.vue"
          ),
      },
      {
        path: "/setting/createUser",
        name: "settingCreateUser",
        meta: { title: ["设置", "成员管理"], hideBreadcrumb: true },
        component: () =>
          import(
            /* webpackChunkName: "settingCreateUser" */ "../views/setting/userManagement/create.vue"
          ),
      },
      {
        path: "/setting/payeeAccount",
        name: "settingPayeeAccount",
        meta: { title: ["设置", "结算卡"] },
        component: () =>
          import(
            /* webpackChunkName: "settingPayeeAccount" */ "../views/setting/payee/index.vue"
          ),
      },
      {
        path: "/setting/addPayee",
        name: "settingAddPayee",
        meta: { title: ["设置", "新增结算卡"], hideBreadcrumb: true  },
        component: () =>
          import(
            /* webpackChunkName: "settingAddPayee" */ "../views/setting/payee/addPayee.vue"
          ),
      },
      {
        path: "/setting/payeeResult",
        name: "settingPayeeResult",
        meta: { title: ["设置", "结果"], hideBreadcrumb: true },
        component: () =>
          import(
            /* webpackChunkName: "settingPayeeResult" */ "../views/setting/payee/result.vue"
          ),
      },
      {
        path: "/setting/checkSwitch",
        name: "settingCheckSwitch",
        meta: { title: ["设置", "退款审核开关"] },
        component: () =>
          import(
            /* webpackChunkName: "settingCheckSwitch" */ "../views/setting/checkSwitch/index.vue"
          ),
      },
      {
        path: "/setting/withdrawSwitch",
        name: "settingWithdrawSwitch",
        meta: { title: ["设置", "提现审核开关"] },
        component: () =>
          import(
            /* webpackChunkName: "settingWithdrawSwitch" */ "../views/setting/withdrawSwitch/index.vue"
          ),
      },
      {
        path: "/setting/accountSwitch",
        name: "settingAccountSwitch",
        meta: { title: ["设置", "对账汇总开关"] },
        component: () =>
          import(
            /* webpackChunkName: "settingAccountSwitch" */ "../views/setting/accountSwitch/index.vue"
          ),
      },
      {
        path: "/setting/jointDebug",
        name: "settingJointDebug",
        meta: { title: ["设置", "联调工具"] },
        component: () =>
          import(
            /* webpackChunkName: "settingJointDebug" */ "../views/setting/jointDebug/index.vue"
          ),
      },
      {
        path: "/setting/webhooks",
        name: "settingWebhooks",
        meta: { title: ["设置", "webhooks"] },
        component: () =>
          import(
            /* webpackChunkName: "settingWebhooks" */ "../views/setting/webhooks/index.vue"
          ),
      },
      {
        path: "/setting/addWebhooks",
        name: "settingAddWebhooks",
        meta: { title: ["设置", "webhooks"], hideBreadcrumb: true },
        component: () =>
          import(
            /* webpackChunkName: "settingAddWebhooks" */ "../views/setting/webhooks/create.vue"
          ),
      },
      {
        path: "/setting/webhooksTest",
        name: "settingWebhooksTest",
        meta: { title: ["设置", "webhooks"], hideBreadcrumb: true },
        component: () =>
          import(
            /* webpackChunkName: "settingWebhooksTest" */ "../views/setting/webhooks/testList.vue"
          ),
      },
      {
        path: "/setting/webhooksEdit",
        name: "settingWebhooksEdit",
        meta: { title: ["设置", "webhooks"] },
        component: () =>
          import(
            /* webpackChunkName: "settingWebhooksEdit" */ "../views/setting/webhooks/edit.vue"
          ),
      },
      {
        path: "/setting/collectionQR",
        name: "collectionQR",
        meta: { title: ["设置", "二维码管理"] },
        component: () =>
          import(
            /* webpackChunkName: "collectionQR" */ "../views/setting/collectionQR/index.vue"
          ),
      },
      {
        path: "/setting/accountManage",
        name: "accountManage",
        meta: { title: ["设置", "收款账户"] },
        component: () =>
          import(
            /* webpackChunkName: "accountManage" */ "../views/setting/accountManage/index.vue"
          ),
      },
      // 企业
      {
        path: "/qiye/orderCenter",
        name: "orderCenter",
        meta: { title: ["订单中心"] },
        component: () =>
          import(
            /* webpackChunkName: "orderCenter" */ "../views/qiye/orderCenter/index.vue"
          ),
      },
      {
        path: "/qiye/operationLog",
        name: "operationLog",
        meta: { title: ["操作日志"] },
        component: () =>
          import(
            /* webpackChunkName: "operationLog" */ "../views/qiye/operationLog/index.vue"
          ),
      },
      {
        path: "/qiye/userManagement",
        name: "userManagement",
        meta: { title: ["成员管理"] },
        component: () =>
          import(
            /* webpackChunkName: "userManagement" */ "../views/qiye/userManagement/index.vue"
          ),
      },
      {
        path: "/qiye/addUser",
        name: "qiyeAddUser",
        meta: { title: ["成员管理"], hideBreadcrumb: true },
        component: () =>
          import(
            /* webpackChunkName: "qiyeAddUser" */ "../views/qiye/userManagement/create.vue"
          ),
      },
      {
        path: "/qiye/balanceDetails",
        name: "balanceDetails",
        meta: { title: ["余额明细"] },
        component: () =>
          import(
            /* webpackChunkName: "balanceDetails" */ "../views/qiye/balanceDetails/index.vue"
          ),
      },
      {
        path: '/qiye/accountView',
        name: 'accountView',
        meta: { title: ['账户一览']},
        component: () => import(/* webpackChunkName: "accountView" */ '../views/qiye/accountView/index.vue')
      },
      {
        path: "/qiye/purchaseView",
        name: "purchaseView",
        meta: { title: ["购买/续约"], hideBreadcrumb: true },
        component: () =>
          import(
            /* webpackChunkName: "purchaseView" */ "../views/qiye/purchaseView/index.vue"
          ),
      },
      {
        path: "/qiye/companyInfo",
        name: "companyInfo",
        meta: { title: ["企业信息"] },
        component: () =>
          import(
            /* webpackChunkName: "companyInfo" */ "../views/qiye/companyInfo/index.vue"
          ),
      },
      {
        path: "/qiye/developParams",
        name: "developParams",
        meta: { title: ["开发参数"] },
        component: () =>
          import(
            /* webpackChunkName: "developParams" */ "../views/qiye/developParams/index.vue"
          ),
      },
      {
        path: "/qiye/invoice",
        name: "invoiceVue",
        meta: { title: ["发票管理"] },
        component: () =>
          import(
            /* webpackChunkName: "invoiceVue" */ "../views/qiye/invoice/index.vue"
          ),
      },
      {
        path: "/qiye/createInvoice",
        name: "createInvoice",
        meta: { title: ["发票管理"] },
        component: () =>
          import(
            /* webpackChunkName: "createInvoice" */ "../views/qiye/invoice/create.vue"
          ),
      },
      {
        path: "/qiye/rolePermissions",
        name: "rolePermissions",
        meta: { title: ["角色权限"] },
        component: () =>
          import(
            /* webpackChunkName: "rolePermissions" */ "../views/qiye/rolePermissions/index.vue"
          ),
      },
      {
        path: "/qiye/addRole",
        name: "addRole",
        meta: { title: ["角色权限"], hideBreadcrumb: true },
        component: () =>
          import(
            /* webpackChunkName: "addRole" */ "../views/qiye/rolePermissions/create.vue"
          ),
      },
      {
        path: '/qiye/systemUsage',
        name: 'systemUsage',
        meta: { title: ['系统用量']},
        component: () => import(/* webpackChunkName: "systemUsage" */ '../views/qiye/systemUsage/index.vue')
      },
      {
        path: "/qiye/excess",
        name: "excessDetails",
        meta: { title: ["系统用量", "超量账单"], hideBreadcrumb: true },
        component: () =>
          import(
            /* webpackChunkName: "excessDetails" */ "../views/qiye/systemUsage/excess.vue"
          ),
      },
      // 个人
      {
        path: "/geren/userInfo",
        name: "gerenUserInfo",
        meta: { title: ["账号信息"] },
        component: () =>
          import(
            /* webpackChunkName: "gerenUserInfo" */ "../views/geren/info/index.vue"
          ),
      },
      {
        path: "/geren/userInfo/edit",
        name: "gerenUserInfoEdit",
        meta: { title: ["账号信息"], hideBreadcrumb: true },
        component: () =>
          import(
            /* webpackChunkName: "gerenUserInfoEdit" */ "../views/geren/info/edit.vue"
          ),
      },
      {
        path: "/geren/password",
        name: "passwordVue",
        meta: { title: ["修改密码"] },
        component: () =>
          import(
            /* webpackChunkName: "passwordVue" */ "../views/geren/password/index.vue"
          ),
      },
      {
        path: "/geren/workOrder",
        name: "workOrder",
        meta: { title: ["我的工单"] },
        component: () =>
          import(
            /* webpackChunkName: "workOrder" */ "../views/geren/workOrder/index.vue"
          ),
      },
      {
        path: "/geren/ULog",
        name: "uLog",
        meta: { title: ["操作日志"] },
        component: () =>
          import(
            /* webpackChunkName: "uLog" */ "../views/geren/ULog/index.vue"
          ),
      },
      {
        path: "/marketingTool/weChatRedPacket/detail",
        name: "wechatRedPacketDetail",
        meta: { title: ["营销工具", "微信红包", "详情"] },
        component: () =>
          import(
            /* webpackChunkName: "wechatRedPacketDetail" */ "../views/coupon/redPacket/detail.vue"
          ),
      },
      {
        path: "/salesOrder/detail",
        name: "salesOrderDetail",
        meta: { title: ["交易", "业务订单", "详情"] },
        component: () =>
          import(
            /* webpackChunkName: "salesOrderDetail" */ "../views/salesOrder/detail.vue"
          ),
      },
      {
        path: "/deal/qiyePay/detail",
        name: "qiyePayDetail",
        meta: { title: ["交易", "企业付款", "详情"] },
        component: () =>
          import(
            /* webpackChunkName: "qiyePayDetail" */ "../views/deal/qiyePay/detail.vue"
          ),
      },
      {
        path: "/deal/wechatCaseAccount/detail",
        name: "wechatCaseAccountDetail",
        meta: { title: ["交易", "微信分账", "详情"] },
        component: () =>
          import(
            /* webpackChunkName: "wechatCaseAccountDetail" */ "../views/deal/wechatCaseAccount/detail.vue"
          ),
      },
      {
        path: "/merchant/dealSearch/detail",
        name: "dealSearchDetail",
        meta: { title: ["商户", "交易查询", "企业付款详情"] },
        component: () =>
          import(
            /* webpackChunkName: "dealSearchDetail" */ "../views/merchant/dealSearch/detail.vue"
          ),
      },
      {
        path: "/deal/refundTool/detail",
        name: "refundToolDetail",
        meta: { title: ["交易", "退款订单", "详情"] },
        component: () =>
          import(
            /* webpackChunkName: "refundToolDetail" */ "../views/deal/refundTool/detail.vue"
          ),
      },
      {
        path: "/account/withdrawRecord/detail",
        name: "withdrawRecordDetail",
        meta: { title: ["账户", "提现管理", "详情"] },
        component: () =>
          import(
            /* webpackChunkName: "withdrawRecordDetail" */ "../views/account/withdrawRecord/detail.vue"
          ),
      },
      {
        path: "/account/balance/detail",
        name: "balanceDetail",
        meta: { title: ["账户", "余额管理", "详情"] },
        component: () =>
          import(
            /* webpackChunkName: "balanceDetail" */ "../views/account/balance/detail.vue"
          ),
      },
      {
        path: "/account/give_balance/detail",
        name: "giveBalanceDetail",
        meta: { title: ["账户", "赠送余额管理", "详情"] },
        component: () =>
          import(
            /* webpackChunkName: "giveBalanceDetail" */ "../views/account/giveBalance/detail.vue"
          ),
      },
      {
        path: "/deal/dealWater/detail",
        name: "dealWaterDetail",
        meta: { title: ["交易", "支付订单", "详情"] },
        component: () =>
          import(
            /* webpackChunkName: "dealWaterDetail" */ "../views/deal/dealWater/detail.vue"
          ),
      },
      {
        path: "/deal/refund/detail",
        name: "refundDetail",
        meta: { title: ["交易", "退款审核", "详情"] },
        component: () =>
          import(
            /* webpackChunkName: "refundDetail" */ "../views/deal/refund/detail.vue"
          ),
      },
      {
        path: "/merchant/dealSearch/detailPay",
        name: "detailPay",
        meta: { title: ["商户", "交易查询", "支付详情"] },
        component: () =>
          import(
            /* webpackChunkName: "detailPay" */ "../views/merchant/dealSearch/detailPay.vue"
          ),
      },
      {
        path: "/setting/jointDebug/detail",
        name: "jointDebugDetail",
        meta: { title: ["设置", "联调工具", "详情"] },
        component: () =>
          import(
            /* webpackChunkName: "jointDebugDetail" */ "../views/setting/jointDebug/detail.vue"
          ),
      },
      {
        path: "/merchant/dealSearch/detailRefund",
        name: "refundToolsDetail",
        meta: { title: ["商户", "交易查询", "退款详情"] },
        component: () =>
          import(
            /* webpackChunkName: "refundToolsDetail" */ "../views/merchant/dealSearch/detailRefund.vue"
          ),
      },
      {
        path: "/account/recharge/detail",
        name: "rechargeDetail",
        meta: { title: ["账户", "充值记录", "详情"] },
        component: () =>
          import(
            /* webpackChunkName: "rechargeDetail" */ "../views/account/recharge/detail.vue"
          ),
      },
      {
        path: "/caseAccount/detail",
        name: "caseAccountDetail",
        meta: { title: ["分账", "应付分账详情"] },
        component: () =>
          import(
            /* webpackChunkName: "caseAccountDetail" */ "../views/caseAccount/details/detail.vue"
          ),
      },
    ],
  },
  {
    path: "/middleWorkLayout",
    name: "middleWorkLayout",
    component: () =>
      import(/* webpackChunkName: "middleWorkLayout" */ "../views/middleWork/index.vue"),
    children: [
      {
        path: "/middleWork",
        name: "middleWorkHome",
        component: () =>
          import(
            /* webpackChunkName: "middleWorkHome" */ "../views/middleWork/home.vue"
          ),
      },
      {
        path: "/companyPersonInfo",
        name: "middleWorkCompanyPersonInfo",
        component: () =>
          import(
            /* webpackChunkName: "middleWorkCompanyPersonInfo" */ "../views/middleWork/registerInfo.vue"
          ),
      },
      {
        path: "/editCompanyPersonInfo",
        name: "editCompanyPersonInfo",
        component: () =>
          import(
            /* webpackChunkName: "middleWorkCompanyPersonInfo" */ "../views/qiye/editRegister.vue"
          ),
      },
      {
        path: "/downCenter",
        name: "middleWorkDown",
        component: () =>
          import(
            /* webpackChunkName: "middleWorkDown" */ "../views/middleWork/down.vue"
          ),
      },
      {
        path: "/advice",
        name: "middleWorkAdvice",
        component: () =>
          import(
            /* webpackChunkName: "middleWorkAdvice" */ "../views/middleWork/advice.vue"
          ),
      },
      {
        path: "/service",
        name: "middleWorkService",
        component: () =>
          import(
            /* webpackChunkName: "middleWorkService" */ "../views/middleWork/service.vue"
          ),
      },
      {
        path: "/message",
        name: "middleWorkMessage",
        component: () =>
          import(
            /* webpackChunkName: "middleWorkMessage" */ "../views/middleWork/message.vue"
          ),
      },
    ],
  },
  {
    path: "/login",
    name: "loginVue",
    component: () =>
      import(/* webpackChunkName: "loginVue" */ "../views/login/index.vue"),
  },
  {
    path: "/loginMobile",
    name: "loginMobileVue",
    component: () =>
      import(/* webpackChunkName: "loginVue" */ "../views/login/loginMobile.vue"),
  },
  {
    path: "/qiyeUserCreate",
    name: "qiyeUserCreate",
    component: () =>
      import(/* webpackChunkName: "loginVue" */ "../views/login/qiyeUserCreate.vue"),
  },
];

const router = new VueRouter({
  mode: "history",
  base: process.env.BASE_URL,
  routes,
});

export default router;
